//
//  ZBNavigationBar.h
//  ZBNavigation
//
//  Created by  on 11-11-22.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZBNavigationItem.h"

@class ZBNavigationController,ZBActivityView;

@interface ZBNavigationBar : UIView<ZBNavigationItemDelegate> {
    UIView   *_backItem;
    UIButton *_backButton; //own
    ZBActivityView *_activityView;
    UIView   *_leftItem;
    UIView   *_rightItem;
    UIView   *_titleItem;
    
    UIBarButtonItem *_backupRightItem;
    UIView *_backupTitleView;
    
    ZBNavigationController *_naviController;//not own
    UIViewController *_topViewController;
    BOOL _naviBarRendered;
	ZBNavigationItem *_currentNavigationItem;//not own;
}
@property(nonatomic,assign) ZBNavigationController *naviController;
@property(nonatomic,assign) BOOL naviBarRendered;

-(void)changeTopView:(UIViewController*)newController animated:(BOOL)animated pushOrPop:(BOOL)push;
-(void)startLoadingIndicator;
-(void)stopLoadingIndicator:(BOOL)animated;
-(void)refreshBar:(BOOL)animated;
@end
